Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saulparedes/fix always allowed #316

Draft
wants to merge 2 commits into
base: msft-main
Choose a base branch
from

Conversation

Redent0r
Copy link

Merge Checklist
  • Followed patch format from upstream recommendation: https://github.com/kata-containers/community/blob/main/CONTRIBUTING.md#patch-format
    • Included a single commit in a given PR - at least unless there are related commits and each makes sense as a change on its own.
  • Aware about the PR to be merged using "create a merge commit" rather than "squash and merge" (or similar)
  • The upstream/missing label (or upstream/not-needed) has been set on the PR.
Summary
Test Methodology

@Redent0r Redent0r added the upstream/missing PRs that are yet to be upstreamed label Feb 21, 2025
.allow_env_regex_map
.contains_key(&self.name)
{
panic!(
Copy link
Author

@Redent0r Redent0r Feb 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are removing the rule that "allows for anything", panic, since the policy we would produce otherwise won't be allowed anyways

@@ -785,11 +785,15 @@ allow_var(p_process, i_process, i_var, s_name, s_namespace) {

p_name_value[0] == name_value[0]

# TODO: should these be handled in a different way?
always_allowed = ["$(resource-field)", "$(todo-annotation)"]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we go with this route, we no longer need resource-field, todo-annotation distinction. These could all be $(validate-from-settings)

]
],
"allow_env_regex_map": {
"JOB_COMPLETION_INDEX": "^[0-9]+$"
Copy link
Author

@Redent0r Redent0r Feb 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temporarily added for testing. Need to think about how to test our samples without checking in exceptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream/missing PRs that are yet to be upstreamed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant